<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var str = "12345";
		var nstr = str.split("");
			nstr = nstr.reverse();
			console.log(nstr.join(""))
		
		
	</script>
</html>
